﻿//-----------------------------------------------------------------------
// <copyright file="DashboardController.cs" company="Simnova LLC">
//     Copyright (c) Simnova LLC. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Simnova.Collaborate.ASPMVC.Controllers
{
    using System;
    using System.Web;
    using System.Web.Mvc;
    using Simnova.Collaborate.ASPMVC.AppServer;
    using System.Collections.Generic;

    public class DashboardController : Controller
    {
        public void Index()
        {
            AppServer.CollaborateServiceClient csc = new Simnova.Collaborate.ASPMVC.AppServer.CollaborateServiceClient();
            List<Company> companies = csc.GetCompanies();
            RenderView("Index", companies);
        }

        protected override void OnActionExecuting(FilterExecutingContext filterContext)
        {
            // Do something.
        }

        protected override void OnActionExecuted(FilterExecutedContext filterContext)
        {
            // Do something.
        }
    }
}
